import request from '@/router/axios'

export function fetchPvmDeviceCommandList(query) {
  return request({
    url: '/pvm/pvmdevicecommand/page',
    method: 'get',
    params: query
  })
}

export function addPvmDeviceCommandObj(obj) {
  return request({
    url: '/pvm/pvmdevicecommand',
    method: 'post',
    data: obj
  })
}

export function getPvmDeviceCommandObj(id,groupId) {
  return request({
    url: '/pvm/pvmdevicecommand/' + id + '/' + groupId,
    method: 'get'
  })
}

export function delPvmDeviceCommandObj(id,groupId) {
  return request({
    url: '/pvm/pvmdevicecommand/' + id + '/' + groupId,
    method: 'delete'
  })
}

export function putPvmDeviceCommandObj(obj) {
  return request({
    url: '/pvm/pvmdevicecommand',
    method: 'put',
    data: obj
  })
}
